package com.daJiao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.daJiao.entity.SysAddress;

import java.util.List;

public interface SysAddressMapper extends BaseMapper<SysAddress> {

    int batchInsert(List<SysAddress> addressList);

    List<SysAddress> getChildrenByParentCode(String parentCode);

    List<SysAddress> getAll();

    List<SysAddress> queryProvinceAndCity();

    SysAddress queryAddressByCode(String parentCode);
}